const authRoutes = [
{
  path: '/',
  name: 'layout',
  component: 'layout/index.vue',
  children: [
    { path: '/', name: 'home', component: 'home/index.vue' },
    { path: '/login', name: 'login', component: 'login/index.vue' },
    { path: '/register', name: 'register', component: 'login/index.vue' },
    { path: '/profile/:username', name: 'profile', component: 'profile/index.vue' },
    { path: '/settings', name: 'settings', component: 'settings/index.vue' },
    { path: '/editor', name: 'editor', component: 'editor/index.vue' },
    { path: '/article/:slug', name: 'article', component: 'article/index.vue' }
  ]
}, {
  path: '/login',
  name: 'login',
  component: 'login/index.vue'
}]

export default authRoutes
